package models

func CasbinCheckPermission(roleName, path, method string) (bool, error) {

	return casbinEnforcer.Enforce(roleName, path, method)

}

func CasbinAddPolicies(rules [][]string) (bool, error) {
	return casbinEnforcer.AddPolicies(rules)
}

func CasbinAddOnePolicy(sub, obj, act string) (bool, error) {
	return casbinEnforcer.AddPolicy(sub, obj, act)
}
